<!-- 公共资源的导入 -->
<?php if (!has_templet()) { ?>
    <script src="/shop/templates/haidao/js/onlineserver.js" type="text/javascript"></script>
    <script src="/shop/templates/haidao/js/globals.js" type="text/javascript"></script>
    <script charset="utf-8" src="/shop/templates/haidao/js/common.js"></script>
    <link rel="stylesheet" href="/shop/templates/haidao/css/style.css" type="text/css" media=""/>
    <link rel="stylesheet" href="/shop/templates/haidao/css/menu.css" type="text/css" media=""/>
	<link rel="stylesheet" type="text/css" href="/shop/templates/template1/Css/common.css" />
<link rel="stylesheet" type="text/css" href="/shop/templates/template1/Css/app.css" />
<link rel="stylesheet" type="text/css" href="/shop/templates/template1/Css/main.css" />
    <script charset="utf-8" src="/shop/templates/haidao/js/wpa.js"></script>
    <script src='/data/resource/js/jquery.lazyload.min.js'></script>
 <style type="text/css"> 
.newuser_text{display:none;}
.newuser0424{width:920px;height:612px;overflow:hidden;background:url(/shop/templates/template1/Images/43840_920_612_001-web.jpg) top center no-repeat;}
.newuser0424 .link_btm{display:block;height:178px;overflow:hidden;margin-top:434px;} 
.newuser0424 .user_btn{background: none; width:38px;height:38px;top:0px;right:0px;position: absolute;cursor: pointer;}
.new_user_clorbox #cboxClose { background: none; width:38px;height:38px;top:0px;right:0px;}

._jmyp .ecope_switchable .sc_container ul{
    width: 100%;
    min-height: 450px;
}

.banner{
    position: relative;
    min-height: 450px;
    overflow: auto;
}
/*#fullScreenSlides{
}
.full-screen-slides li{
    position: relative !important;
    float: left;
}*/
.cate_look:hover{
    color:#fff;
}
/*.full-screen-slides-pagination{
    display: none !important;

}*/
.full-screen-slides-pagination{
    z-index: 1 !important;
}
</style> 
    <style>
        #faq {
            display: none;
        }

        #footer {
            display: none;
        }

        .my_left_category {
            display: none !important;
        }

        .cat_logo {
            display: inline-block;
            float: left;
            margin-top: 11px;
            margin-left: 15px;
            margin-right: 10px;
        }
    </style>

    <!--    <script>-->
    <!--        $(function() {-->
    <!--            $('.lazyload').lazyload();-->
    <!--        });-->
    <!--    </script>-->

    <?php
    $web_config = Model('setting')->getListSetting();
}

?>




<?php
if(get_template_type() == 'header'){

?>
<div id="header">

        <div class="top_nav_bg">
            <div class="top_nav1">                
                <div class="top_link fix">                
                    <div class="login_re">                        
                        您好，欢迎访问<?php echo $web_config['site_name']?>！
                     </div>

                    
		
					
					
                    <div class="link_list">
                    	<div class="lg-bar">
                    	    <?php
                    	        if(isset($_SESSION['member_id'])){
                            ?>
                            您好，<?php echo $_SESSION['member_name']?>
                            <a href="/shop/index.php?act=member&op=home">[个人中心]</a>
                            <a href="" id='logout'>[退出]</a>
                            <script >
                            $('#logout').click(function(){
                                $.post("//shop/index.php?act=login&op=logout",function(msg){
                                    location.reload();
                                })
                                return false;
                            })
</script>
                            <?php
                    	        }else{
                    	    ?>
                    	    <a id="Default_ctl00___linkMyAccount" href="/shop/index.php?act=login&op=register">注册</a><a id="Default_ctl00___Common_Link_Login1" href="/shop/index.php?act=login">登录</a>
                    	    <?php

                    	        }
                    	    ?>

                        </div>
						<span>|</span>
						<span>
						<ul class="header_top_right" id="headerTopRight">
			<li class="item_ijumei">
        		<a href="index.php?act=seller_center">商家管理</a>
        		<div class="sub_nav" style='top:26px;'>
        			<ul>
        				<li> <a style='text-align:center;text-indent:0' href="/shop/index.php?act=show_joinin&op=index">商家申请</a></li>
        				<li>
        					 <a style='text-align:center;text-indent:0;' href="index.php?act=seller_center">商家登录</a>
        				</li>
        			</ul>
        		</div> 
        	</li>
		</ul>
        	<script>	
        			$(function(){
        				$('.item_ijumei:first').hover(function(){
        					$(this).addClass('hover');
        					$(this).find('.sub_nav').show();
        				},function(){
        					$(this).removeClass('hover');
        					$(this).find('.sub_nav').hide();
        				});
        			})
        	</script>
					
						</span>
						<span>|</span>
                         <span>
                            <a href="/shop/index.php?act=member_order&op=index">我的订单</a>
                            
                         </span>
                        <span>|</span> 

                        
						
						
                        
                        <span>
                            <a id="Default_ctl00___SiteUrl4" href="/shop/index.php?act=article&op=article&ac_id=35">帮助中心</a></span>
                            <span>|</span>
                              <span><div id="shoucang" style='margin-right: -20px;'><div class="ad_custom cssEdite" type="custom" id="ads_28" ><a href="javascript:favPage();">收藏商城</a></div>
</div></span>
                    </div>
                </div>
            </div>
        </div>
    
</div>
        <div class="header1_p1 fix">
            <div class="logo">
                <div class="logo cssEdite" type="logo" id="logo_1" >
<a href="/">
<img src="/shop/templates/haidao/<?php echo tpl_get("common,logo")?>" />
</a>
</div>

            </div>
         
         <div class="jf_ad1"><div class="adv_image cssEdite" type="image" id="ads_2" >
<a target="_blank"><img src="/shop/templates/haidao/pictures/20150626173739_1546.jpg" /></a>
</div>
</div>
         <div class="jf_ad3">
               <div class="search_tab">
                <div class="search">
<form action="/shop/index.php">
    <input type="hidden" name="act" value="search">
    <input type="text" name="keyword" id="txt_Search_Keywords" class="search_input" />
    <input type="submit" value=""  class="search_btn" />
</form>

                </div>  
            </div> 
            <?php
            $config = Model('setting')->getListSetting();

            ?>
            <div class="remen"><label>热门搜索：</label><ul class="keyword cssEdite" type="keyword" id="comments_4" >
            <?php
                foreach(explode(',',$config['hot_search']) as $item){
                ?>
                <li>
                <a href="/shop/?act=search&keyword=<?php echo $item;?>"><?php echo $item;?></a>
</li>
                <?php
                }
            ?>
</ul>
</div>
            
         </div>
         <div class="jf_ad4">
            <div class="top_buycart fix">
            	

<a id="Default_ctl00___Common_ShoppingCart_Info1___SiteUrl1" href="/shop/?act=cart" target="_blank">
<div class="cart-btn">购物车<b id="cart-num" style="display:none;">0</b><b style=" display:none;">
<span id="Default_ctl00___Common_ShoppingCart_Info1___cartMoney">0.00</span></b></div></a>

            </div>
            <div class="tel"><div class="adv_image cssEdite" type="image" id="ads_4" >
<a target="_blank"><img src="/shop/templates/haidao/pictures/20150630152553_9871.png" /></a>
</div>
</div>
            </div>
        </div>
        <div class="nav_bg nobor">
            <div class="nav1">
          <div class="side_nav">
                    <h3 class="title">
                        <a id="Default_ctl00___SiteUrl5" href="/index.php">
                        所有商品分类</a>
                    </h3>

                    <div class="my_left_category">
                        
                    <?php
                        $cat_1 = Model('goods_class')->getGoodsClassListByParentId(0);
                        foreach($cat_1 as $cat1){
                            $cat_2 = Model('goods_class')->getGoodsClassListByParentId($cat1['gc_id']);
                    ?>
                    	    <div class="my_left_cat_list">
            <div id='twoCategory_5000000' class="h2_cat" >
                <h3> <img class="cat_logo" src="/data/upload/shop/common/category-pic-<?php echo $cat1['gc_id']?>.jpg" width="16" height="16" alt=""> <a href='/shop/?act=search&op=index&cate_id=<?php echo $cat1['gc_id']?>'><?php echo $cat1['gc_name']?></a> </h3>

                <ul class="new-subcate">
                    <?php
                        foreach($cat_2 as $cat2){
                    ?>
                    <li>
                    <a href="/shop/?act=search&op=index&cate_id=<?php echo $cat2['gc_id']?>"><?php echo $cat2['gc_name']?></a>
</li>
                    <?php
                        }
                    ?>


                </ul>
                <div class="h3_cat" id='threeCategory_5000000'>
                     <div class="shadow">
                        <div class="shadow_border">

                            <span class="category" >

                            <?php
                                foreach($cat_2 as $cat2){
                            ?>
                                                                  <div class="fenlei_jianduan">
                                             <h4>
                                                <a href='/shop/?act=search&op=index&cate_id=<?php echo $cat2['gc_id']?>'><?php echo $cat2['gc_name']?></a>
                                             </h4>

                                            <div class="fthree">
                                               <ul>
                                               <?php
                                                $cat_3 = Model('goods_class')->getGoodsClassListByParentId($cat2['gc_id']);
                                                foreach($cat_3 as $cat3){
                                                ?>
                                                 <li>
                                                         <a href='/shop/?act=search&op=index&cate_id=<?php echo $cat3['gc_id']?>'><?php echo $cat3['gc_name']?></a>
                                                       </li>
                                                <?php
                                                }
                                               ?>


                                               </ul>
                                             </div>
                                         </div>

                            <?php
                                }
                            ?>







  			                 </span>

					    </div>
				     </div>
			</div>
		</div>
		</div>

                    <?php
                    }
                    ?>
 
                    </div>
                </div>
                
                <div class="main_nav" id="ty_menu_title">
                    <ul>
                        <?php
                        $nav = get_nav();
                        foreach($nav as $key => $val){
                            if(!is_array($val)){
                            ?>
                            <li>
                                <a href="/">
                                    <span><?php echo $val;?></span>
                                </a>
                            </li>
                            <?php    
                            }
                            else {
                                foreach ($val as $v) {
                                ?>
                                <li>
                                    <a href="<?php echo $v['nav_url'] ?>">
                                    <span>
                                        <?php
                                            echo $v['nav_title'];
                                        ?>
                                    </span>
                                    </a>
                                </li>
                                <?php
                                }
                            }
                        }
                        ?>
                    </ul>
                    
        </li>
    



                        <li> <a  href="/SubCategory.aspx?keywords=&minSalePrice=&maxSalePrice=&categoryId=8000072"><span>海外直邮</span></a></li><li> <a  href="/SubCategory.aspx?keywords=&minSalePrice=&maxSalePrice=&categoryId=1000000"><span>食品保健</span></a></li><li> <a  href="/SubCategory.aspx?keywords=&minSalePrice=&maxSalePrice=&categoryId=8000236&brand=&TagIds="><span>世界名酒</span></a></li><li> <a  href="/SubCategory.aspx?keywords=&minSalePrice=&maxSalePrice=&categoryId=8000038"><span>美妆洗护</span></a></li><li> <a  href="/SubCategory.aspx?keywords=&minSalePrice=&maxSalePrice=&categoryId=8000040"><span>家居日用</span></a></li><li> <a  href="/SubCategory.aspx?keywords=&minSalePrice=&maxSalePrice=&categoryId=8000044"><span>进口汽车</span></a></li><li> <a  href="/SubCategory.aspx?keywords=&minSalePrice=&maxSalePrice=&categoryId=8000042"><span>宜和购物</span></a></li>
                    </ul>
                    <ul>
                    
                    </ul>
                </div>
               
            
                
            </div>
        </div></div>




<script type="text/javascript">
	   function Showxinren_tab() {
		   document.getElementById("xinren_tab").style.display = "block";
	   }

	   function Hiddenxinren_tab() {
		   document.getElementById("xinren_tab").style.display = "none";
	   }
</script>
          
            <script>
                var currenturl = location.href.substr(location.href.lastIndexOf('/') + 1, location.href.length - 20);
                if (currenturl != "Desig_Templete.aspx?skintemp=default") {
                    $(".side_nav").hover(function () {
                        $(".my_left_category").css({ 'display': 'block' });
                    }, function () {
                        $(".my_left_category").css({ 'display': 'none' });
                    });
                } 
				// $(function(){
						$(".h2_cat").each(function(){
					        $(this).hover(function(){
					           if($(this).hasClass('active_cat')){
					                $(this).removeClass("active_cat");
					            }else{
					                $(this).addClass('active_cat');
					            }
					        });
					    });
						
					//购物车 数量为0时 不显示
					function toggleCartNum(){
						var $cartNum = $("#cart-num");
						var val = parseInt($cartNum.text());
						if(val){
							$cartNum.show();
						}
					}
					toggleCartNum();
						//})
//左侧导航start
$(function(){
	function setHeight(){
		height = $('.my_left_category').height();
		$('.shadow_border').height(height+2);
	};
	$('.my_left_category>div').filter('.my_left_category>div:gt(6)').hide ();
	$('.my_left_category>div').filter ('.my_left_category>div:nth-child(14)').mouseover(function(){
		$(this).siblings ('.my_left_category>div:gt(6)').show();
		setHeight();
	})
	$('.my_left_category>div').filter ('.my_left_category>div:nth-child(14)').mouseout(function(){
		$(this).siblings ('.my_left_category>div:gt(6)').hide();
		setHeight();
	})
	$('.my_left_category>div').filter ('.my_left_category>div:nth-child(14)').siblings ('.my_left_category>div:gt(6)').mouseover(function(){
		$('.my_left_category>div').filter ('.my_left_category>div:nth-child(6)').siblings ('.my_left_category>div:gt(6)').show();
		setHeight();
	})
	$('.my_left_category>div').filter ('.my_left_category>div:nth-child(14)').siblings ('.my_left_category>div:gt(6)').mouseout(function(){
		$('.my_left_category>div').filter ('.my_left_category>div:nth-child(14)').siblings ('.my_left_category>div:gt(6)').hide();
		setHeight();
	})
});
//左侧导航over
    </script>
    <script src="/shop/templates/haidao/js/switchsite.js" type="text/javascript"></script>
    </div>
    



<?php } ?>


<?php if (get_template_type() == 'index') { ?>
    <style>
        .my_left_category {
            display: block !important;
        }
    </style>
    <div class="main_index" id="main_index">

        <div class="mainlunbo">

          
            <!--新加的新闻部分-->
            <div class="ad_custom cssEdite" type="custom" id="ads_11">
                <div id="lunhuanJS"><!--产品分类开始 --><!--产品分类结束--><!--轮播 tab标签 -->
                    <div class="lunhuan_content"><!--舌签1开始 -->
                        <div class="tab_1">
                            <div id="pic" class="tab_img">
                                <a href="http://haidaowang.com/browse/category-5000000.aspx" title="母婴" alt="母婴"
                                   class="active-ele">
                                    <div
                                        style="background:url(/shop/templates/haidao/images/20151211143541_4451.jpg) no-repeat center top;height:485px;"></div>
                                </a> <a
                                    href="http://www.haidaowang.com/SubCategory.aspx?keywords=&amp;minSalePrice=&amp;maxSalePrice=&amp;categoryId=8000038&amp;importsourceid=12"
                                    title="144" alt="144" border="0">
                                    <div
                                        style="background:url(/shop/templates/haidao/images/20160201150829_5864.jpg) no-repeat center top;height:485px;"></div>
                                </a> <a href="http://www.haidaowang.com/browse/category-8000236.aspx" title="轮播图 1920"
                                        alt="轮播图 1920" border="0">
                                    <div
                                        style="background:url(/shop/templates/haidao/images/20151214135318_7606.jpg) no-repeat center top;height:485px;"></div>
                                </a> <a href="http://www.haidaowang.com/browse/category-5000000.aspx?brand=94"
                                        title="PC端 妈宝福活动轮播图" alt="PC端 妈宝福活动轮播图" border="0">
                                    <div
                                        style="background:url(/shop/templates/haidao/images/20160104163356_1139.jpg) no-repeat center top;height:485px;"></div>
                                </a> <a href="http://www.haidaowang.com/browse/category-8000018.aspx" target="_blank"
                                        title="放假通知 pc" alt="放假通知 pc">
                                    <div
                                        style="background:url(/shop/templates/haidao/images/20160121170456_8574.jpg) no-repeat center top;height:485px;"></div>
                                </a> <a
                                    href="http://www.haidaowang.com/SubCategory.aspx?keywords=&amp;minSalePrice=&amp;maxSalePrice=&amp;categoryId=8000038&amp;importsourceid=3"
                                    title="PC端 韩货轮播图" alt="PC端 韩货轮播图" class="active-ele">
                                    <div
                                        style="background:url(/shop/templates/haidao/images/20160112173733_2172.jpg) no-repeat center top;height:485px;"></div>
                                </a></div>
                            <div style="clear:both;"></div>
                            <div class="tab_menu">
                                <ul id="play">
                                    <li style="text-align:center;cursor:pointer;" id="li0" class="lunhuanJSbg active"
                                        alt="1"><a>1</a></li>
                                    <li style="text-align:center;cursor:pointer;" id="li1" class="lunhuanJSbg normal"
                                        alt="2"><a>2</a></li>
                                    <li style="text-align:center;cursor:pointer;" id="li2" class="lunhuanJSbg normal"
                                        alt="3"><a>3</a></li>
                                    <li style="text-align:center;cursor:pointer;" id="li3" class="lunhuanJSbg normal"
                                        alt="4"><a>4</a></li>
                                    <li style="text-align:center;cursor:pointer;" id="li4" class="lunhuanJSbg normal"
                                        alt="5"><a>5</a></li>
                                    <li style="text-align:center;cursor:pointer;" id="li5" class="lunhuanJSbg normal"
                                        alt="6"><a>6</a></li>
                                </ul>
                            </div>
                        </div>
                        <div style="clear:both;"></div>
                    </div>
                    <!--右侧 --></div>
            </div>

        </div>
        <div class="main1 fix">
            <div class="box1 mt20">
                <table class="banner-table" cellpadding="0" cellspacing="0">
                    <tr>
                        <?php
                        $middle_banner = tpl_get("index,middle_banner");
                        foreach ($middle_banner as $pic) {

                            ?>
                            <td>
                                <div class="adv_image cssEdite" type="image" id="newads_002"><a
                                        href='<?php echo $pic['link'] ?>' target="_blank"><img
                                            src="/shop/templates/haidao/<?php echo $pic['pic']; ?>"
                                            data-original="/templates/master/haidao/UploadImage/advertimg/20150810092650_3435.jpg"
                                            class="lazyload" style="width:171px;height:180px;"/></a></div>
                            </td>

                        <?php } ?>

                    </tr>
                </table>
            </div>
            <?php
            $floor = tpl_get("index,floor");
            foreach ($floor as $key => $item) {

                ?>
                <div class="floor floor-<?php echo $key + 1; ?>">
                    <div class="floor_hd"
                         style="color:<?php echo $item['color'] ?> !important;border-bottom-color:<?php echo $item['color'] ?> !important;">
                        <div class="title cssEdite" type="title">
                            <div><span class="icon"><?php echo $key + 1; ?>F</span><span
                                    class="title"><?php echo $item['name'] ?></span></div>
                        </div>
                        <div class="morelink" type="morelink"><em><a href="<?php echo $item['more'] ?>">更多</a></em>
                        </div>
                    </div>
                    <div class="floor-main">
                        <?php
                        $images = $item['images'];

                        ?>
                        <table class="fav-table floor-table bd-top-none" cellpadding="0" cellspacing="0">
                            <tbody>
                            <tr class="border-top-none">
                                <td class="m1">
                                    <div class="cssEdite" type="image" id="newads_11">
                                        <a
                                            href="<?php echo $images[0]['link'] ?>"><img
                                                src="/shop/templates/haidao/<?php echo $images[0]['pic'] ?>"
                                                data-original="/templates/master/haidao/UploadImage/advertimg/20150813191828_4625.jpg"
                                                class="lazyload" style=""/></a></div>
                                </td>
                                <td rowspan="2">
                                    <table class="fav-table floor-table border-none" cellpadding="0" cellspacing="0">
                                        <tbody>
                                        <tr class="border-top-none">
                                            <td rowspan="2" class="bd-left-none bd-bottom-none m3">
                                                <div class="cssEdite" type="image" id="newads_12"><a
                                                        href="<?php echo $images[1]['link'] ?>"><img
                                                            src="/shop/templates/haidao/<?php echo $images[1]['pic'] ?>"
                                                            data-original="/templates/master/haidao/UploadImage/advertimg/20150813194044_2149.jpg"
                                                            class="lazyload" style=""/></a></div>
                                            </td>
                                            <td class="m4">
                                                <div class="cssEdite" type="image" id="newads_13"><a
                                                        href="<?php echo $images[2]['link'] ?>"><img
                                                            src="/shop/templates/haidao/<?php echo $images[2]['pic'] ?>"
                                                            data-original="/templates/master/haidao/UploadImage/advertimg/20160125085338_1749.jpg"
                                                            class="lazyload" style=""/></a></div>
                                            </td>
                                            <td colspan="2">
                                                <div class="cssEdite" type="image" id="newads_14"><a
                                                        href="<?php echo $images[3]['link'] ?>"><img
                                                            src="/shop/templates/haidao/<?php echo $images[3]['pic'] ?>"
                                                            data-original="/templates/master/haidao/UploadImage/advertimg/20150813195300_2710.jpg"
                                                            class="lazyload" style=""/></a></div>
                                            </td>
                                            <td class="bd-right-none">
                                                <div class="cssEdite" type="image" id="newads_15"><a
                                                        href="<?php echo $images[4]['link'] ?>"><img
                                                            src="/shop/templates/haidao/<?php echo $images[4]['pic'] ?>"
                                                            data-original="/templates/master/haidao/images/temp/m9.jpg"
                                                            class="lazyload" style=""/></a></div>
                                            </td>
                                        </tr>
                                        <tr class="border-bottom-none">
                                            <td class="m4">
                                                <div class="cssEdite" type="image" id="newads_16"><a
                                                        href="<?php echo $images[5]['link'] ?>"><img
                                                            src="/shop/templates/haidao/<?php echo $images[5]['pic'] ?>"
                                                            data-original="/templates/master/haidao/UploadImage/advertimg/20151110090825_6777.jpg"
                                                            class="lazyload" style=""/></a></div>
                                            </td>
                                            <td class="m5">
                                                <div class="cssEdite" type="image" id="newads_17"><a
                                                        href="<?php echo $images[6]['link'] ?>"><img
                                                            src="/shop/templates/haidao/<?php echo $images[6]['pic'] ?>"
                                                            data-original="/templates/master/haidao/UploadImage/advertimg/20151211085933_1836.jpg"
                                                            class="lazyload" style=""/></a></div>
                                            </td>
                                            <td class="m6">
                                                <div class="cssEdite" type="image" id="newads_18"><a
                                                        href="<?php echo $images[7]['link'] ?>"><img
                                                            src="/shop/templates/haidao/<?php echo $images[7]['pic'] ?>"
                                                            data-original="/templates/master/haidao/images/temp/m8.jpg"
                                                            class="lazyload" style=""/></a></div>
                                            </td>
                                            <td class="bd-right-none">
                                                <div class="cssEdite" type="image" id="newads_19"><a
                                                        href="<?php echo $images[8]['link'] ?>"><img
                                                            src="/shop/templates/haidao/<?php echo $images[8]['pic'] ?>"
                                                            data-original="/templates/master/haidao/images/temp/m10.jpg"
                                                            class="lazyload" style=""/></a></div>
                                            </td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div class="cssEdite" type="image" id="newads_20"><a
                                            href="<?php echo $images[9]['link'] ?>"><img
                                                src="/shop/templates/haidao/<?php echo $images[9]['pic'] ?>"
                                                data-original="/Storage/master/gallery/201508/f7257c15f095405faffd02bcaa66ba22.png"
                                                class="lazyload" style=""/></a></div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div style="height:15px;"></div>
                <?php
            }
            ?>

        </div>
        <script type="text/javascript" src="/shop/templates/haidao/js/slider.js"></script>
        <script type="text/javascript">

            $(function () {
                //猜你喜欢 滑动
                $('#swiper-container').flexslider({
                    animation: "slide",
                    direction: "horizontal",
                    easing: "swing",
                    directionNav: false,
                    animationLoop: true,
                    slideshowSpeed: 5000, // 自动播放速度毫秒
                    animationSpeed: 200 //滚动效果播放时长
                });
                //关闭 头部 广告
                $("#guild-close").bind("click", function () {
                    $(this).parents(".guild-wrap").hide();
                })
                //图片懒加载
                $("img.lazyload").lazyload({failure_limit: 1});
                //顶部间隙
                var mt = $(window).height() / 2;
                var $floor = $(".floor:not(.fav-floor)");

                function setFloor() {
                    var top = $(window).scrollTop();
                    var winH = $(window).height();
                    var theme = "hover";
                    //判断 到 哪一个楼层
                    $floor.each(function (index, element) {
                        var offset = $(this).offset();
                        var arr = $(this).attr("class").split(" ");
                        var sp = offset.top - mt;
                        if (top >= sp) {
                            var $curFloor = $("#tb-wrap .tb-flr[data-sc=" + arr[1] + "]");
                            $curFloor.addClass(theme).siblings().removeClass(theme);
                            return;
                        }
                    });
                }

                var scInter;
                //滚动
                $(window).bind("scroll.tb", function () {
                    var $tbWrap = $("#tb-wrap");
                    var scrooltop = $(this).scrollTop();
                    var winH = $(window).height();
                    var top = $(".floor-1").offset().top;
                    if ((scrooltop + winH) >= top) {
                        $tbWrap.show();
                    } else {
                        $tbWrap.hide();
                    }
                    if (scInter) {
                        window.clearTimeout(scInter);
                    }
                    scInter = window.setTimeout(setFloor, 0);
                })
                // 右侧工具条
                $("#tb-wrap a").bind("click", function () {
                    var st = 0;
                    var sc = $(this).attr("data-sc");
                    if (sc == "top") {

                    } else {
                        var $floor = $("." + sc);
                        var offset = $floor.offset();
                        st = offset.top - mt + 1;
                        if (st < 0) {
                            st = 0;
                        }
                    }
                    $('html,body').stop().animate({scrollTop: st}, 200);
                })
            })
        </script>
        <script type="text/javascript">
            var pageindex = 0;
            function HuanClicek() {
                pageindex++;
                $.ajax({
                    type: "get",
                    url: "/Common_Default_ProductList_AJAX.aspx",
                    data: {pageIndex: pageindex},
                    success: function (data) {
                        $("#common_default_productlist").html(data);
                        if ($("#common_default_productlist table td").length != 6) {
                            pageindex = -1;
                            HuanClicek();
                        }
                    },
                    error: function () {
                        alert("error");
                        pageindex--;
                    }
                });
            }</script>
        <script type=text/javascript>
            var _c = _h = 0;
            $(function () {
                $('#play > li').click(function () {
                    var i = $(this).attr('alt') - 1;
                    clearInterval(_h);
                    _c = i;
                    play();
                    change(i);
                })
                $("#pic div").hover(function () {
                    clearInterval(_h)
                }, function () {
                    play()
                });
                play();
            })
            function play() {
                _h = setInterval("auto()", 6000);
            }
            var tit;
            function change(i) {
                var $curLi = $("#li" + i);
                $curLi.addClass("active").siblings().removeClass("active");
                var $curItem = $("#pic a").eq(i);
                var $siblings = $curItem.siblings();
                var theme = "active-ele";
                $siblings.removeClass(theme).stop().animate({opacity: 0}, 500);
                $curItem.stop().animate({opacity: 1}, 500, function () {
                    window.clearTimeout(tit);
                    tit = window.setTimeout(function () {
                        $curItem.addClass(theme);
                    }, 10);
                });
            }
            function auto() {
                var length = $("#play li").length;
                _c = _c > length ? 0 : _c + 1;
                change(_c);
            }

        </script>
    </div>


 

<?php } ?>

<?php if (get_template_type() == 'footer') { ?>



    <div class="footer">
        <div class="state-ment">
            <ul class="fix">
                <li>
                    <div class="st-box fix">
                        <div class="st-img s1"></div>
                        <div class="st-info">
                            <p><strong>NO.1</strong></p>

                            <p>国内领先</p>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="st-box fix">
                        <div class="st-img s2"></div>
                        <div class="st-info">
                            <p><strong>保障100%</strong></p>

                            <p>国检监督入仓</p>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="st-box fix">
                        <div class="st-img s3"></div>
                        <div class="st-info">
                            <p><strong>正品保障</strong></p>

                            <p>7天无理由退货</p>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="st-box fix">
                        <div class="st-img s4"></div>
                        <div class="st-info">
                            <p><strong>体验店</strong></p>

                            <p>遍布全国</p>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="st-box fix">
                        <div class="st-img s5"></div>
                        <div class="st-info">
                            <p><strong>服务</strong></p>

                            <p>全程优质服务</p>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="st-box fix">
                        <div class="st-img s6"></div>
                        <div class="st-info">
                            <p><strong>快捷</strong></p>

                            <p>国际物流配送</p>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
        <div class="foot">
            <div class="footer_ad foot-guide">
                <div class="g-h25"></div>
                <ul class="g-cf">
                    <li class="rookie"><h3><span class="g-dib"><img
                                    src="/shop/templates/haidao/pictures/bdc18472e84446199531260dc3012858.png"/></span>新手帮助
                        </h3>

                        <div><a href="/helpItem.aspx?helpid=7">新手注册</a><a href="/helpItem.aspx?helpid=47">会员制度</a><a
                                href="/helpItem.aspx?helpid=6">账户密码</a><a href="/helpItem.aspx?helpid=44">用户协议</a></div>
                    </li>
                    <li class="rookie"><h3><span class="g-dib"><img
                                    src="/shop/templates/haidao/pictures/50733ee4a85d419a81d0a6db8b14d36d.png"/></span>购物指南
                        </h3>

                        <div><a href="/helpItem.aspx?helpid=61">优惠券使用说明</a><a
                                href="/helpItem.aspx?helpid=39">验货与签收</a><a href="/helpItem.aspx?helpid=40">配送服务</a><a
                                href="/helpItem.aspx?helpid=41">支付方式</a><a href="/helpItem.aspx?helpid=42">购物流程</a><a
                                href="/helpItem.aspx?helpid=43">购买须知</a></div>
                    </li>
                    <li class="rookie"><h3><span class="g-dib"><img
                                    src="/shop/templates/haidao/pictures/7c5391a62aa64fbfa2d891d4ebae115e.png"/></span>售后服务
                        </h3>

                        <div><a href="/helpItem.aspx?helpid=33">退货流程</a><a href="/helpItem.aspx?helpid=60">海捣网重要承诺</a><a
                                href="/helpItem.aspx?helpid=26">退款说明</a><a href="/helpItem.aspx?helpid=34">退换货政策</a><a
                                href="/helpItem.aspx?helpid=35">服务时效承诺</a></div>
                    </li>
                    <li class="rookie"><h3><span class="g-dib"><img
                                    src="/shop/templates/haidao/pictures/bda5c3a317794744aefd050f50395865.png"/></span>交易安全
                        </h3>

                        <div><a href="/helpItem.aspx?helpid=28">交易条款</a><a href="/helpItem.aspx?helpid=62">服务支持</a><a
                                href="/helpItem.aspx?helpid=63">正品保障</a></div>
                    </li>
                    <li class="rookie"><h3><span class="g-dib"><img
                                    src="/shop/templates/haidao/pictures/tel.png"></span>联系客服</h3>

                        <div class="hh-tel"><p>热线:400-694-6069</p>

                            <p>投诉:<a href="mailto:lianjie@tempus.cn">lianjie@tempus.cn</a></p></div>
                    </li>
                    <li class="wechat"><h3>商城微信</h3>

                        <div><img align="left" src="/shop/templates/haidao/pictures/qc.jpg" width="75" height="75">
                            微信公众号<br>海捣网
                        </div>
                    </li>
                </ul>
            </div>
            <div class="g-h25"></div>
        </div>
        <div class="footer_ad g-tc foot-link">

            <a href='http://www.tempus.cn/' target="_blank">腾邦集团</a>|
            <a href='http://www.haidaowang.com/helpItem.aspx?helpid=58' target="_blank">关于海捣</a>|
            <a href='http://www.haidaowang.com/helpItem.aspx?helpid=57' target="_blank">招贤纳士</a>|
            <a href='http://www.haidaowang.com/helpItem.aspx?helpid=59' target="_blank">招商合作</a>|
            <a href='http://www.haidaowang.com/helpItem.aspx?helpid=46' target="_blank">服务条款</a>|
            <a href='http://www.haidaowang.com/helpItem.aspx?helpid=45' target="_blank">法律申明</a>|
            <a href='http://www.haidaowang.com/helpItem.aspx?helpid=36' target="_blank">联系我们</a>|
            <a href='http://www.itrust.org.cn' target="_blank">信用评价中心</a>|
            <a href='http://m.kuaidi100.com/' target="_blank">快递查询</a>|
        </div>
        <div class="g-h10">
        </div>
        <div class="footer_ad foot-icp g-tc">
            <p style="text-align:center;"><span
                    style="text-align:center;text-transform:none;background-color:#f5f5f5;text-indent:0px;display:inline !important;font:12px/21px Arial, 宋体;white-space:normal;float:none;letter-spacing:normal;color:#666666;word-spacing:0px;-webkit-text-stroke-width:0px;">© Copyright 2015-2019 深圳前海腾邦保税跨境电子商务有限公司&nbsp;</span><span
                    style="color:#666666;font-family:'Arial, 宋体';"><span
                        style="line-height:21px;">粤ICP备15050302号-1</span></span></p>

            <p style="text-align:center;"></p>

            <p>&nbsp;</p>
            <script id="ebsgovicon" src="/shop/templates/haidao/js/govicon.js" type="text/javascript"
                    charset="utf-8"></script>
            <a href="http://www.anquan.org" logo_type="business" logo_size="124x47" key="5615ed7fefbfb01a6e842c05">
                <script src="/shop/templates/haidao/js/aq_auth.js"></script>
            </a> <a id="___szfw_logo___" href="https://credit.szfw.org/CX20151215012666200163.html" target="_blank"><img
                    src="/shop/templates/haidao/pictures/cert.png" border="0"/></a>
            <script type="text/javascript">(function () {
                    document.getElementById('___szfw_logo___').oncontextmenu = function () {
                        return false;
                    }
                })();</script>
        </div>
    </div>
<?php } ?>

